package com.example.dao;

import com.example.po.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface SysUserDao {

    @Select("select * from sys_user where id =#{id}")
    public SysUser getById(@Param("id") String id);

    @Select("select * from sys_user")
    public List<SysUser> findList();
}
